home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / new-midi.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  54 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 35.7.2, p. IV-117.
  16. % Original source in file "o2.TEX", starting line 1582.
  17. \wlog{L: "new-midi.tip" ["o2.TEX," l. 1582, p. IV-117]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{op-pagec.tip}
  20. \InputD{op-endin.tip}
  21. \catcode`\@ = 11
  22. \newdimen\@TopInsertSize
  23. \@TopInsertSize = 0pt
  24. \def\ReportTopInsertSize #1{%
  25.     \wlog{\string\@TopInsertSize: "#1"}%
  26.     \wlog{\EightSpaces The value of \noexpand\@TopInsertSize is
  27.         \the\@TopInsertSize}%
  28. }
  29. \def\MidInsertFix{% 
  30.     \ReportTopInsertSize{\string\MidInsertFix}%
  31.     \ifdim\@TopInsertSize > 0pt
  32.         \@midfalse
  33.         \p@gefalse
  34.     \fi
  35. }
  36. \def\MidInsertFixPage{%
  37.     \ReportTopInsertSize{\string\MidInsertFixPage[1]}%
  38.     \global\advance\@TopInsertSize by \vsize
  39.     \ReportTopInsertSize{\string\MidInsertFixPage[2]}%
  40. }
  41. \def\MidInsertFixTop{%
  42.     \ReportTopInsertSize{\string\MidInsertFixTop[1]}%
  43.     \global\advance\@TopInsertSize by \ht0
  44.     \global\advance\@TopInsertSize by \dp0
  45.     \ReportTopInsertSize{\string\MidInsertFixTop[2]}%
  46. }
  47. \def\@UpdateTopInsertSize{%
  48.     \ReportTopInsertSize{\string\@UpdateTopInsertSize[1]}%
  49.     \global\advance\@TopInsertSize by -\ht\topins
  50.     \global\advance\@TopInsertSize by -\dp\topins
  51.     \ReportTopInsertSize{\string\@UpdateTopInsertSize[2]}%
  52. }
  53. \catcode`\@ = 12
  54.